package cn.wolfcode.trip.app.controller;

import cn.wolfcode.trip.base.domain.Tag;
import cn.wolfcode.trip.base.service.ITagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/tags")
public class TagController {
    @Autowired
    private ITagService tagService;
    @GetMapping("/{state}")
    private Object getTagsByState(Integer state,Long strategyId){
        List<Tag> tags = tagService.getTagsByState(state,strategyId);
        return tags;
    }
}
